#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
int main()
{
	int N = 0; int sum = 0;
	scanf("%d", &N);
	int n = 0, gewei = 0;
	while (N != 0)
	{
		gewei = N % 10;
		N = N / 10;
		n++;
		sum += gewei;
	}
	printf("%d ", n);
	printf("%d", sum);
	return 0;

}
